package com.sntk.registermanager.staff.application.dto;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author liuyunxia
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DoctorInfoCreator implements Serializable {

    @ApiModelProperty(value="医生名称",name="doctorName", required=true)
    @NotBlank(message = "医生名称不能为空")
    private String doctorName;


    @ApiModelProperty(value="联系电话",name="phone", required=true)
    @NotBlank(message = "联系电话不能为空")
    private String phone;


    @ApiModelProperty(value="医生简介",name="introduction")
    private String introduction;


    @ApiModelProperty(value="备注",name="remark")
    private String remark;


    @ApiModelProperty(value="医生职称",name="jobTitle")
    private String jobTitle;


    @ApiModelProperty(value="性别",name="gender", required=true)
    @NotNull(message = "性别不能为空")
    private Integer gender;

    @ApiModelProperty(value="医生照片",name="img", required=true)
//    @NotNull(message = "照片不能为空")
 //   @JSONField(serialize = false)
    private MultipartFile img;


    @ApiModelProperty(value="登录用户名",name="uname", required=true)
    @NotBlank(message = "登录用户名不能为空")
    private String uname;

    @ApiModelProperty(value="密码",name="password")
    private String password;

}
